import request from '@/utils/request'

// 查询 网关 路由列表信息
export function kongRoutesList(query) {
  return request({
    url: '/kong/routes/list',
    method: 'get',
    params: query
  })
}

export function kongRouteAdd(data) {
  return request({
    url: '/kong/routes/add',
    method: 'post',
    data: data
  })
}

export function kongRouteDel(id){
  return request({
    url: '/kong/routes/'+id ,
    method: 'delete' ,    
  })
}

export function kongRouteByServiceId(id){
  return request({
    url: '/kong/routes/service/'+id,
    method: 'get'
  })
}


export function kongRouteUpdate(data){
  return request({
    url: '/kong/routes/update/'+data.id,
    method: 'post',
    data:data
  })
}